package tarena.netctoss.po;

import java.util.Set;

/**
 * 角色
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-3-10
 */

public class Role implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	/** 角色id */
	private Integer id;
	/** 角色名称 */
	private String name;
	/** 该角色拥有者 */
	private Set<Admin> admins;
	/** 角色拥有的权限 */
	private Set<Right> rights;

	/** default constructor */
	public Role() {
	}

	/** full constructor */
	public Role(String name) {
		this.name = name;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<Admin> getAdmins() {
		return admins;
	}

	public void setAdmins(Set<Admin> admins) {
		this.admins = admins;
	}

	public Set<Right> getRights() {
		return rights;
	}

	public void setRights(Set<Right> rights) {
		this.rights = rights;
	}

}